package cn.bluemobi.app.mapper;

import java.util.List;
import java.util.Map;

import cn.bluemobi.app.entity.form.CommentForm;
import cn.bluemobi.app.entity.form.OrderForm;
import cn.bluemobi.app.entity.output.BalanceCommodity;
import cn.bluemobi.app.entity.output.BalanceItem;
import cn.bluemobi.app.entity.output.Order;
import cn.bluemobi.app.entity.output.OrderItem;

public interface OrderMapper {

	BalanceItem findMerchantInfo(String merchantId);

	List<BalanceCommodity> findCommodityByCartIds(
			List<String> shoppingCartIdList);

	List<BalanceCommodity> findCommodityByCommodityId(String commodityId,
			String specificationId, String quantity);

	int checkCommoditySupplyCount(OrderForm orderForm);

	int insertOrder(Map<String, Object> params);

	int insertOrderInfo(Map<String, Object> orderItemParams);

	void updateCommoditySupplyCount(List<BalanceCommodity> balanceCommoditys);

	int deleteShoppingCart(List<String> shoppingCartIdList);

	int checkmMemberConsumePoints(String canExchangePoints, String memberId);

	int updateOrder(Map<String, Object> orderParams);

	int updateCommodityBuyCount(List<BalanceCommodity> balanceCommodities);

	void updateMemberConsumePoints(String points, String memberId);

	List<Order> findOrders(Map<String, Object> params);

	List<OrderItem> findOrderItem(String orderId);

	Order findOrderByOrderId(String orderId);

	int cancelOrder(String memberId, String orderId);

	int updateReduceMemberPoints(String points, String memberId);

	int updateAddMemberPoints(String points, String memberId);

	int deleteOrder(String memberId, String orderId);

	int confirmReceipt(String memberId, String orderId);

	int insertComment(CommentForm commentForm);

	int insertCommentImage(Map<String, Object> imageUrlParams);

	int updateOrderInfoCommentStatus(String string, String orderInfoId);

	int checkIsCommentFinish(String string, String orderId);

	int updateOrderFinish(String memberId, String orderId);

	void insertPointsDetail(String memberId, String points, String type,
			String source);

	//
	// List<OrderItem> findCommoditys(String commodityId, String
	// specificationId,
	// String quantity);
	//
	// int checkCommoditySupplyCount(OrderForm orderForm);
	//
	// int insertOrder(OrderForm orderForm);
	//
	// int insertOrderInfo(Map<String, Object> orderInfoParams);
	//
	// int deleteShoppingCart(List<String> shoppingCartIdList);
	//
	// List<Order> findOrders(Map<String, Object> params);
	//
	// List<OrderItem> findOrderItem(String orderId);
	//
	// Order findOrderByOrderId(Long orderId);
	//
	// Address findAddress(String orderId);
	//
	// int cancelOrder(String memberId, Long orderId);
	//
	// int deleteOrder(String memberId, Long orderId);
	//
	// int confirmReceipt(String memberId, Long orderId);
	//
	// int insertOrderReturn(OrderReturnForm orderReturnForm);
	//
	// int insertOrderReturnImage(Map<String, Object> imageUrlParams);
	//
	// int insertOrderReturnInfo(OrderReturnForm orderReturnForm);
	//
	// int updateOrderInfoAfterSalesStatus(String afterSalesStatus,
	// String orderInfoId);
	//
	// int insertComment(CommentForm commentForm);
	//
	// int insertCommentImage(Map<String, Object> imageUrlParams);
	//
	// int updateCommoditySupplyCount(List<OrderItem> commodityList);
	//
	// int updateOrderInfoCommentStatus(String commentStatus, String
	// orderInfoId);
	//
	// int checkIsCommentFinish(String commentStatus, String orderInfoId);
	//
	// int updateOrderFinish(String memberId, String orderId);
	//
	// List<AfterSales> findMyAfterSaless(Map<String, Object> params);
	//
	// AfterSales findMyAfterSalesDetail(String afterSalesId);
	//
	// List<String> findMyAfterSalesImgs(String afterSalesId);
	//
	// List<AfterSalesItem> findAfterSalesItems(String afterSalesId);
	//
	// Map<String, Object> getPoints(String memberId);
	//
	// int checkMemberPoints(String usePoints, String memberId);
	//

}
